﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 枚举与整型转换
{
    class Program
    {
        //enum State { 在线,离线,活跃,离开}
        //enum 黑桃 { 黑桃A = 1, 黑桃2 = 2, 黑桃3 = 3, 黑桃4 = 4, 黑桃5 = 5, 黑桃6 = 6, 黑桃7 = 7, 黑桃8 = 8, 黑桃9 = 9, 黑桃10 = 10, 黑桃J = 11, 黑桃Q = 12, 黑桃K = 13 }
        //enum 梅花 { 梅花A = 1, 梅花2 = 2, 梅花3 = 3, 梅花4 = 4, 梅花5 = 5, 梅花6 = 6, 梅花7 = 7, 梅花8 = 8, 梅花9 = 9, 梅花10 = 10, 梅花J = 11, 梅花Q = 12, 梅花K = 13 }
        //enum 红桃 { 红桃A = 1, 红桃2 = 2, 红桃3 = 3, 红桃4 = 4, 红桃5 = 5, 红桃6 = 6, 红桃7 = 7, 红桃8 = 8, 红桃9 = 9, 红桃10 = 10, 红桃J = 11, 红桃Q = 12, 红桃K = 13 }
        //enum 方块 { 方块A = 1, 方块2 = 2, 方块3 = 3, 方块4 = 4, 方块5 = 5, 方块6 = 6, 方块7 = 7, 方块8 = 8, 方块9 = 9, 方块10 = 10, 方块J = 11, 方块Q = 12, 方块K = 13 }
        enum 牌面 {PA=1,P2=2,P3=3,P4=4,P5=5,P6=6,P7=7,P8=8,P9=9,P10=10,PJ=11,PQ=12,PK=13}
        enum 花色 { 黑桃,红桃,梅花,方块}
        static void Main(string[] args)
        {
            //int 扑克 =(int) 黑桃.黑桃K;
            //Console.WriteLine(扑克);
            //int A= 1;
            //红桃 红桃扑克 = (红桃)A;
            //Console.WriteLine(红桃扑克);
        }
    }
}
